using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;

namespace Kontakter
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            MainForm mf = new MainForm();
            try
            {
                Application.EnableVisualStyles();
                //Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(mf);
            }
            catch (Exception exc)
            {
                mf.Logic.Logger.Write("Exception: " + exc.Message);
                mf.Logic.Logger.Write("Stack trace: " + exc.StackTrace);
                mf.Logic.Logger.Stop();
                Process.Start("LogReader.exe", Logic.LogFileName);
            }
        }
    }
}